From 5a815e21591639cf2901d6c8529cf6b6bba54ab4 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 29 Dec 2011 14:04:19 +0100 Subject: [PATCH] styleproperty: Add _gtk_style_property_get_initial_value() --- gtk/gtkstyleproperty.c | 8 ++++++++ gtk/gtkstylepropertyprivate.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/gtk/gtkstyleproperty.c b/gtk/gtkstyleproperty.c index 518a0e42c3..5eade848a0 100644 --- a/gtk/gtkstyleproperty.c +++ b/gtk/gtkstyleproperty.c @@ -2605,6 +2605,14 @@ _gtk_style_property_resolve (const GtkStyleProperty *property, g_value_copy (val, val_out); } +const GValue * +_gtk_style_property_get_initial_value (const GtkStyleProperty *property) +{ + g_return_val_if_fail (property != NULL, NULL); + + return &property->initial_value; +} + gboolean _gtk_style_property_is_shorthand (const GtkStyleProperty *property) { diff --git a/gtk/gtkstylepropertyprivate.h b/gtk/gtkstylepropertyprivate.h index faa0e5bdf1..e34c20859b 100644 --- a/gtk/gtkstylepropertyprivate.h +++ b/gtk/gtkstylepropertyprivate.h @@ -82,6 +82,8 @@ void _gtk_style_property_default_value (const GtkStyleProper GtkStyleProperties *properties, GtkStateFlags state, GValue *value); +const GValue * _gtk_style_property_get_initial_value + (const GtkStyleProperty *property); void _gtk_style_property_resolve (const GtkStyleProperty *property, GtkStyleProperties *properties, -- 2.30.2